home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
utils2
/
search.zip
/
SEARCH.DOC
< prev
next >
Wrap
Text File
|
1994-06-03
|
7KB
|
174 lines
SEARCH version 6.11
Copyright De Vries Automatisering 1988-1994
(Questions, remarks, bug-info to Compuserve mail 100121,3102)
History:
--------
This program was developed first to find only files on a harddisk.
All the features now availble are put in after 6 years of usage.
This program is supplied free to all our customers buying out software.
It is widely used, that's why we want to share it with you!
Use it, it is FREEWARE.
>>>>>>>>> WARNING <<<<<<<<<<
SEARCH always starts searching in the root directory of the current drive!
So be carefull when using the delete options of the program.
Program can ALWAYS be interrupted by pressing the ESC key!
The program:
------------
It is only 30 Kbytes but it is full with features. It is fast and flexible.
It is usefull for finding files, viewing files, changing attributes etc.
For list of commandline options start program without options.
Commandline options :
---------------------
You can mix file-specs and options as you wish, but only op to ten
file-specs are allowed.
The usage of '*' and '?' wildcards is NOT the same as in DOS, it is more
flexible. You can use '*' and '?' more than once in the spec.
'?' = match 1 karakter.
'*' = match zero or more karakters.
Options:
--------
-A[rhsvda] : Search only for files with given attribute(s)
SEARCH *.doc -ah
Search for al 'doc' files on current drive with only
hidden attribute.
-BX : Copy found files to path 'X'
SEARCH *.doc -ba:
Search for al 'doc' files on current drive and copy them
to drive a:
-C[-][+][=][yymmdd] : Search only for files before/after/on supplied date
SEARCH *.doc *.bat -c=940401
Search for 'doc' and 'bat' files created on april first 1994.
-D[Y][N] : Delete found files.
SEARCH *.doc -dy
Delete all 'doc' files on current drive without asking for
confirmation.
-E[program] : Execute 'program' in every directory where the found file is.
SEARCH *.doc -edosome.exe
Search for all 'doc' files on current drive, and in every
directory where 'doc' files are found, execute program
dosome.exe.
You can use parameters with the supplied program :
SEARCH *.doc -e"dosome.exe special"
-F : Use fast screenoutput. (Write directly to screen memory)
Do not use this if you want to redirect output to a file!
-G : Switch to directory where first found file resides.
SEARCH editor.exe -g
Switch to directory where first found editor.exe resides.
-H : Do not start searching in root-directory but in the current
directory (and all other directories from here)
-I : Delete empty subdirectories encountered in search.
-J : After search is completed ask for keypress before exiting the
program.
Usefull if you start the program from a multitasker in a window.
-K : Show the directory where SEARCH is searching at the moment.
-L[-][+][=]length : Search only for files smaller/bigger/equal to the
given length.
SEARCH *.doc -l+4096
Search for all 'doc' files on current drive with a
filelength exceeding 4 Kbytes.
-MX : Move found files to 'X'
SEARCH *.doc -Md:
Move all 'doc' files from current disk to d:
>>>> Use only for moving files to another disk <<<<<
-N : Normally SEARCH will ask for a keypress whenever the screen
is full, and then scroll. This option disables this.
-O : Produces a list of found files with full pathnames only.
(No other information)
-P : In search for given files, not all subdirectories are parsed,
but only the paths given in the 'PATH' environent variable.
Usefull if you want to know where an executable is started from.
-Q : Search only in current directory, nowhere else.
-R : Use wide-format screenoutput with only filenames.
-S[T][B] : Print files on screen, after confirmation.
SEARCH *.doc -ST
Search for all 'doc' files on current drive an print them on
screen(text) after confirmation.
SEARCH *.doc -SB
Search for all 'doc' files on current drive an print them on
screen(hexdump) after confirmation.
-T[spec] : Exclude files with 'spec' from search
SEARCH *.* -t*.doc
Search for all files on current drive, except 'doc' files.
-U : Execute first found file after confirmation.
search editor.exe -u
Search for editor.exe and execute if found.
-V[-][+][rhsa] : Change fileattributes from found files.
Search *.doc -a+r
Make all 'doc' files on current drive read-only
-W[abcdef...] : Search drives given.
SEARCH *.doc -wcd
Search for all doc files on drive c: and d:
-X : Only show totals of found files.
-Z : Delete directory-tree from current directory.
(Combination of options -i -h -dn)
Combining commandline options:
------------------------------
Examples:
SEARCH *.bak *.sym -dn
Delete all 'bak' and 'sym' files from current drive.
SEARCH *.doc -c=931231 -l+5000 -ba:
Copy all 'doc' files created on december 31 1993 with a length
exceeding 5000 bytes to drive a:
SEARCH *.tmp -q -ar -v-r -dn
Find all 'tmp' files in current directory which are read-only,
switch off the read-only attribute and delete the file without asking.
(Deleting is always done last)
SEARCH *.* -l+1000000
Search for all files on current drive greater than 1000000 bytes.
SEARCH *.c -q -c-930101 -o *.h >source.txt
Search for all 'c' and 'h' files in current directory created before
january first 1993, produce a full-pathname list, and redirect it
to a file calles 'source.txt'
SEARCH *.* -l=0 -dn
Search for all zero-length files on current drive and delete them.
SEARCH *.tmp -ba: -dn
Copy all 'temp' files on current drive to a: and delete them afterwards.
etc. etc. etc.